package com.example.book.repository

import com.example.book.model.Book
import retrofit2.Call
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.Path

interface BookWebService {

    @GET("/book/{isbn}")
    fun getBook(@Path("isbn") isbn: String): Call<Book>

    @GET("/books/list")
    fun getBooks(): Call<List<Book>>

    @DELETE("/book/delete/{isbn}")
    fun deleteBook(@Path("isbn") isbn: String): Call<List<Book>>
}